package com.rzjm.api.service;

import com.rzjm.api.entity.*;

import java.util.List;

/**
 *  传感器
 * @author zhouwei
 * @email
 * @date
 */
public interface DeviceWeldingRecordService extends BaseService<DeviceWeldingRecord> {

    /**
     *  企业安全科获取 上报的 电焊机使用申请
     * @param user
     * @param sysUser
     * @return
     */
    List<DeviceWeldingRecord> getRecordListByShop(int state,User user, SysUser sysUser, Department departmentSafe,int pageIndex,int pageSize);


    /**
     *  动火申请：需要关联 作业票的
     * @return
     */
    DeviceWeldingRecord addRecord(int user_id, FsrDevice fsrDevice, SysUser sysUser, DeviceWelding device, int use_state, FireWork fireWork, Shop shop);

    /**
     *  动火申请：不需要关联 作业票的
     * @return
     */
    DeviceWeldingRecord addRecordSafe(int user_id, FsrDevice fsrDevice, SysUser sysUser, DeviceWelding device,  String useAddress,int use_state, Shop shop);

    /**
     *  生产经理审核   固定机位焊机申请
     * @return
     */
    int managerCheckRecord(DeviceWeldingRecord deviceRecord, SysUser sysUser, DeviceWelding device,int check_state,String check_result);

}
